package com.ruoyi.dataAnalysis.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;

/**
 * @program: class by cxf
 * @author: AbrahamBill
 * @date: 2022/10/25
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExportStatisticData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 指定日期 */
    @Excel(name = "日期")
    private String day;

    @Excel(name = "褐飞虱属")
    private int y1;
    @Excel(name = "白背飞虱")
    private int y2;
    @Excel(name = "二化螟")
    private int y3;
    @Excel(name = "稻纵卷叶螟")
    private int y4;
    @Excel(name = "玉米螟")
    private int y5;
    @Excel(name = "草地螟")
    private int y6;
    @Excel(name = "东方粘虫")
    private int y7;
    @Excel(name = "劳氏粘虫")
    private int y8;
    @Excel(name = "草地贪夜蛾")
    private int y9;
    @Excel(name = "大螟")
    private int e1;
    @Excel(name = "斜纹夜蛾")
    private int e2;
    @Excel(name = "棉铃虫")
    private int e3;
    @Excel(name = "小菜蛾")
    private int e4;
    @Excel(name = "桃蛀螟")
    private int e5;
    @Excel(name = "梨小食心虫")
    private int e6;
    @Excel(name = "小地老虎")
    private int e7;
    @Excel(name ="八字地老虎")
    private int e8;
    @Excel(name = "铜绿丽金龟")
    private int e9;
    @Excel(name = "大黑鳃金龟")
    private int e10;
    @Excel(name ="甜菜夜蛾")
    private int e11;
    @Excel(name ="二点委夜蛾")
    private int e12;
    @Excel(name = "绿盲蝽")
    private int q1;
    @Excel(name = "三化螟")
    private int q2;
    @Excel(name = "小绿叶蝉")
    private int q3;
    @Excel(name = "叩甲")
    private int q4;
    @Excel(name = "暗黑鳃金龟")
    private int q5;
    @Excel(name = "桑绢野螟")
    private int q6;
    @Excel(name = "警纹地老虎")
    private int q7;
    @Excel(name = "黄字地老虎")
    private int q8;
    @Excel(name = "电光叶蝉")
    private int q9;
    @Excel(name = "稻黑蝽")
    private int q10;
    @Excel(name = "黄足猎蝽")
    private int q11;
    @Excel(name = "草蛉类")
    private int q12;
    @Excel(name = "瓜绢螟")
    private int q13;
    @Excel(name = "甜菜白带野螟")
    private int q14;
    @Excel(name = "青翅蚁形隐翅甲")
    private int q15;
    @Excel(name = "蟋蟀类")
    private int q16;
    @Excel(name = "瓢甲类")
    private int q17;
    @Excel(name = "蝼蛄类")
    private int q18;
    @Excel(name = "线委夜蛾")
    private int x1;
    @Excel(name = "苹果蠹蛾")
    private int x2;
    @Excel(name = "松毛虫")
    private int x3;
    @Excel(name = "橄榄绿尾尺蛾")
    private int e120;
    @Excel(name = "榆黄足毒蛾")
    private int e90;
    @Excel(name = "杨雪毒蛾")
    private int e40;
    @Excel(name = "格蔗尺蛾")
    private int a41;



    public void setAllInsectNum(HashMap<String,Integer> insect, String set_day){
        if(insect.containsKey("y1")) {
            this.y1 = insect.get("y1");
        }
        if(insect.containsKey("y2")) {
            this.y2 = insect.get("y2");
        }
        if(insect.containsKey("y3")) {
            this.y3 = insect.get("y3");
        }
        if(insect.containsKey("y4")) {
            this.y4 = insect.get("y4");
        }
        if(insect.containsKey("y5")) {
            this.y5 = insect.get("y5");
        }
        if(insect.containsKey("y6")) {
            this.y6 = insect.get("y6");
        }
        if(insect.containsKey("y7")) {
            this.y7 = insect.get("y7");
        }
        if(insect.containsKey("y8")) {
            this.y8 = insect.get("y8");
        }
        if(insect.containsKey("y9")) {
            this.y9 = insect.get("y9");
        }
        if(insect.containsKey("e1")) {
            this.e1 = insect.get("e1");
        }
        if(insect.containsKey("e2")) {
            this.e2 = insect.get("e2");
        }
        if(insect.containsKey("e1")) {
            this.e3 = insect.get("e3");
        }
        if(insect.containsKey("e1")) {
            this.e4 = insect.get("e4");
        }
        if(insect.containsKey("e1")) {
            this.e5 = insect.get("e5");
        }
        if(insect.containsKey("e1")) {
            this.e6 = insect.get("e6");
        }
        if(insect.containsKey("e1")) {
            this.e7 = insect.get("e7");
        }
        if(insect.containsKey("e1")) {
            this.e8 = insect.get("e8");
        }
        if(insect.containsKey("e1")) {
            this.e9 = insect.get("e9");
        }
        if(insect.containsKey("e1")) {
            this.e10 = insect.get("e10");
        }
        if(insect.containsKey("e1")) {
            this.e11 = insect.get("e11");
        }
        if(insect.containsKey("e1")) {
            this.e12 = insect.get("e12");
        }
        if(insect.containsKey("q1")) {
            this.q1 = insect.get("q1");
        }
        if(insect.containsKey("q1")) {
            this.q2 = insect.get("q2");
        }
        if(insect.containsKey("q1")) {
            this.q3 = insect.get("q3");
        }
        if(insect.containsKey("q1")) {
            this.q4 = insect.get("q4");
        }
        if(insect.containsKey("q1")) {
            this.q5 = insect.get("q5");
        }
        if(insect.containsKey("q1")) {
            this.q6 = insect.get("q6");
        }
        if(insect.containsKey("q1")) {
            this.q7 = insect.get("q7");
        }
        if(insect.containsKey("q1")) {
            this.q8 = insect.get("q8");
        }
        if(insect.containsKey("q1")) {
            this.q9 = insect.get("q9");
        }
        if(insect.containsKey("q1")) {
            this.q10 = insect.get("q10");
        }
        if(insect.containsKey("q1")) {
            this.q11 = insect.get("q11");
        }
        if(insect.containsKey("q1")) {
            this.q12 = insect.get("q12");
        }
        if(insect.containsKey("q1")) {
            this.q13 = insect.get("q13");
        }
        if(insect.containsKey("q1")) {
            this.q14 = insect.get("q14");
        }
        if(insect.containsKey("q1")) {
            this.q15 = insect.get("q15");
        }
        if(insect.containsKey("q1")) {
            this.q16 = insect.get("q16");
        }
        if(insect.containsKey("q1")) {
            this.q17 = insect.get("q17");
        }
        if(insect.containsKey("q1")) {
            this.q18 = insect.get("q18");
        }
        if(insect.containsKey("x1")) {
            this.x1 = insect.get("x1");
        }
        if(insect.containsKey("x2")) {
            this.x2 = insect.get("x2");
        }
        if(insect.containsKey("x3")) {
            this.x3 = insect.get("x3");
        }
        if(insect.containsKey("e120")) {
            this.e120 = insect.get("e120");
        }
        if(insect.containsKey("e90")) {
            this.e90 = insect.get("e90");
        }
        if(insect.containsKey("e40")) {
            this.e40 = insect.get("e40");
        }
        if(insect.containsKey("a41")) {
            this.a41 = insect.get("a41");
        }
        this.day = set_day;
    }


}
